package final2107.day09;

public class Test {
    public static void main(String[] args) {
//        FooImpl foo = new FooImpl();
//        foo.demo02();
//        Foo.test1();
//        Too.test1();
        A a = new SubA();
//        a.foo();
    }
}

class A{
    void foo() throws Exception{
       throw new Exception();
    }}

class SubA extends A{
    void foo(){
       System.out.println("A");
     }
}
